<template>
  <div class="examine-container">
    <Promised :promise="getOrdersAsync">
      <template v-slot:pending>
        <CardSkeleton title="异常拨款订单" />
      </template>
      <template v-slot>
        <OrderCard
          @more="handlerMore"
          @details="handlerDetails"
          tips="拨款失败请处理"
          title="异常拨款订单"
          :pagination="pagination"
        />
      </template>
    </Promised>
  </div>
</template>

<script>
import { getUnusualTasks } from '@/api/flow/work'
import props from './props'

export default {
  mixins: [props],

  methods: {
    tableHooksRequest () {
      return new Promise((resolve, reject) => {
        this.getTableDatas(getUnusualTasks, this.tableParams)
          .then(data => {
            resolve(data)
          })
          .catch(error => {
            reject(error)
          })
      })
    },

    // 更多
    handlerMore () {
      this.$router.push({
        name: 'AppropriationException',
      })
    },
  },
}
</script>
